Skip to content

Commit 29e063e

Browse files
committed
Merge branch 'main' of github.com:jgthms/bulma
2 parents 9a61578 + b03ea79 commit 29e063e

File tree

9 files changed

+14
-8
lines changed

9 files changed

+14
-8
lines changed

sass/base/generic.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $pre-font-size: 0.875em !default;
3232
$pre-padding: 1.25rem 1.5rem !default;
3333
$pre-code-font-size: 1em !default;
3434

35-
:root {
35+
#{cv.$variables-host} {
3636
@include cv.register-vars(
3737
(
3838
"body-background-color": #{$body-background-color},

sass/base/skeleton.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $skeleton-block-min-height: 4.5em !default;
99
$skeleton-lines-gap: 0.75em !default;
1010
$skeleton-line-height: 0.75em !default;
1111

12-
:root {
12+
#{cv.$variables-host} {
1313
@include cv.register-vars(
1414
(
1515
"skeleton-background": #{$skeleton-background},

sass/components/navbar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ $navbar-colors: dv.$colors !default;
101101
z-index: cv.getVar("navbar-fixed-z");
102102
}
103103

104-
:root {
104+
#{cv.$variables-host} {
105105
@include cv.register-vars(
106106
(
107107
"navbar-height": #{$navbar-height},

sass/form/tools.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $label-colors: shared.$form-colors !default;
1515

1616
$field-block-spacing: 0.75rem !default;
1717

18-
:root {
18+
#{cv.$variables-host} {
1919
@include cv.register-vars(
2020
(
2121
"label-color": #{$label-color},

sass/grid/columns.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
$column-gap: 0.75rem !default;
99

10-
:root {
10+
#{cv.$variables-host} {
1111
@include cv.register-vars(
1212
(
1313
"column-gap": #{$column-gap},

sass/themes/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@use "dark";
88
@use "setup";
99

10-
:root {
10+
#{cv.$variables-host} {
1111
@include light.light-theme;
1212
@include setup.setup-theme;
1313
}

sass/utilities/controls.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ $control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default;
1616

1717
$control-focus-shadow-l: 50% !default;
1818

19-
:root {
19+
@debug cv.$variables-host;
20+
@debug iv.$radius;
21+
22+
#{cv.$variables-host} {
2023
@include cv.register-vars(
2124
(
2225
"control-radius": #{$control-radius},

sass/utilities/css-variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
@use "initial-variables" as iv;
77
@use "functions" as fn;
88

9+
$variables-host: iv.$variables-host;
10+
911
@function buildVarName($name, $prefix: "", $suffix: "") {
1012
@return "--#{iv.$cssvars-prefix}#{$prefix}#{$name}#{$suffix}";
1113
}
@@ -495,7 +497,7 @@
495497

496498
@mixin system-theme($name) {
497499
@media (prefers-color-scheme: #{$name}) {
498-
:root {
500+
#{$variables-host} {
499501
@content;
500502
}
501503
}

sass/utilities/initial-variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,4 @@ $class-prefix: "" !default;
154154
$cssvars-prefix: "bulma-" !default;
155155
$helpers-prefix: "is-" !default;
156156
$helpers-has-prefix: "has-" !default;
157+
$variables-host: ":root" !default;

0 commit comments

Comments
 (0)